

<p>Start date: <?php echo date('m-01-Y',strtotime('this month')); ?></p>
<p>End date: <?php echo date('m-t-Y',strtotime('this month')); ?></p>

<?php 
echo '<pre>';
print_r($users);
echo '</pre>';

$userbyid = array();
foreach($users as $user): 
	$userbyid[$user['User']['id']] = $user['User'];
endforeach;
?>
<table>
    <tr>
        <th>Year</th>
    </tr>

  
</table>
<?php echo $this->Paginator->numbers(array('first' => 'First page')); ?>